package net.neptech.model.schedule;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.neptech.utils.SnowflakeIdGenerator;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serial;
import java.io.Serializable;
import java.sql.Time;
import java.util.Date;

/**
 * @Author HuangZhengmin
 * @desc  班次表实体类
 * @Date 2025/8/12 17:23
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "sche_shift")
public class ScheShift implements Serializable{
    @Serial
    private static final long serialVersionUID = 1L;

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "shift_id", nullable = false)
  private Long shiftId; // 班次ID

  @Column(name = "shift_name", length = 50)
  private String shiftName; // 班次名称

  @Column(name = "start_time")
  private Time startTime; // 开始时间

  @Column(name = "end_time")
  private Time endTime; // 结束时间

  @Column(name = "working_hours")
  private Double workingHours; // 工时/h

  @Column(name = "status")
  private Integer status = 1; // 状态(0-无效,1-有效)

  @Column(name = "dept_id")
  private Long deptId ; // 所属科室id

  @Column(name = "create_time")
  private Date createTime; // 创建时间

  @Column(name = "update_time")
  private Date updateTime; // 更新时间
}
